/**
 * Created by huotaol on 2017/5/8.
 */
import React from "react";
import {Image, Text, View} from "react-native";
import CustomStyle from "../../common/style/CustomStyle";

export default class CustomMarker extends React.Component {
    // 构造
    constructor(props) {
        super(props);
        // 初始状态
        this.state = {};
        this.image = require('../../img/buyCar/slidingBlock.png');
    }

    render() {
        return (
            <View
                style={{alignItems: 'center'}}>
                <Text
                    style={[CustomStyle.baseText, {
                        fontSize: CustomStyle.getActualFontSize(28),
                        color: '#ffc000',
                    }]}>{this.props.currentValue}</Text>
                <Image source={this.image} style={{
                    width: CustomStyle.getActualSizeInHorizontal(71),
                    height: CustomStyle.getActualSizeInVertical(74),
                }}/>
            </View>
        );
    }
}